<!--用户信息的呈现-->

<template>
  <div class="infoUserTop">
    <div class="infoname">
      <img :src="user.data.profile.avatarUrl" alt="" class="profileimg" />
    <div class="name">{{ user.data.profile.nickname }}</div>
    </div>

    
  </div>
</template>
<script>
import { mapState } from "vuex";
export default {
  computed: {
    ...mapState(["user"]),
  },
  mounted() {
    console.log(this.user);
  },
};
</script>
<style lang="less" scoped>
.infoUserTop {
    width: 100%;
    height: 13.34rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    background-image: url(../assets/BEIJI1.jpg);
   background-size: cover;
  .profileimg {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    
    
  }
  .infoname{
    top: 50%;
    align-items: center;
  }
  .name{
      font-weight: 700;
      font-size: .4rem;
      
  }
}
</style>